class FeedInfo {

  User user
  String feedName
  String feedUrl
  String includeFilter  = "mots, motsangria, sangria, soest"
  String excludeFilter
  Integer updateFrequency = 60
  Date lastUpdated
  Date dateCreated = new Date()

  static belongsTo = [user:User]

  static constraints =  {
    user(nullable: false)
    feedName(nullable: false, blank:false)
    feedUrl(nullable: false, url: true, blank:false, unique: true)
    includeFilter(nullable: true, blank: false, maxSize: 255)
    excludeFilter(nullable: true)
    updateFrequency (inList: [1 as Integer, 5 as Integer, 10 as Integer, 15 as Integer, 30 as Integer, 60 as Integer, 120 as Integer, 240 as Integer])
    lastUpdated (nullable: true)
    dateCreated(nullable: false)
  }

  public String toString() {
    return feedName
  }
}
